/*
 * @Author: fengYM feng25321@163.com
 * @Date: 2023-10-08 16:57:07
 * @LastEditors: fengYM feng25321@163.com
 * @LastEditTime: 2023-10-10 09:40:47
 * @Description:
 */
import { apiRequest } from "../utils/request";

//登录
export function userLogin(data: any) {
  return apiRequest({
    url: `/userLogin.do`,
    method: "POST",
    data,
  });
}
//注册
export function userRegister(data: any) {
  return apiRequest({
    url: `/userRegister.do`,
    method: "POST",
    data,
  });
}

//获取手机验证码
export function smsSend(data: any) {
  return apiRequest({
    url: `/smsSend.do`,
    method: "POST",
    data,
  });
}
//找回密码
export function updateUserPswByCell(data: any) {
  return apiRequest({
    url: `/updateUserPswByCell.do`,
    method: "POST",
    data,
  });
}
//是否开通支付
export function paymentConfig() {
  return apiRequest({
    url: `/paymentConfig.do`,
    method: "POST",
  });
}
//微信用户登陆信息
export function getOpenid(data: any) {
  return apiRequest({
    url: `/getOpenid.do`,
    method: "POST",
    data,
  });
}

//微信小程序支付
export function unifiedorder(data: any) {
  return apiRequest({
    url: `/unifiedorder.do`,
    method: "POST",
    data,
  });
}
